<!-- основной контент -->
<div class="body_center">
	<div class="servicesList">
		<?
			$i = 1; $hidden = '';

			foreach ($services as $key => $item) {
				if ($i == 3) {
					$nomargin = 'nomargin';
				} else {
					$nomargin = '';
				}

				$one = '
					<div class="item '.$nomargin.'">
						<div class="top" itemscope itemtype="http://schema.org/Product">
							<a itemprop="url" href="'.URL::site($lang.'/services/'.$item->id).'"><span itemprop="name">'.$item->title.'</span></a>
						</div>
						<div class="bottom">
							<div class="price_cont" itemprop="offers" itemscope itemtype="http://schema.org/Offer">
								<div class="price_left"></div>
								<div class="price_center" itemprop="price">'.$sitetext['from']['_value'].' '.str_replace(',',' ',number_format($item->price)).'<span>&nbsp;<img src="'.URL::site('static/css/images/tenge.png').'" alt="'.$item->title.'" /></span></div>
								<div class="price_right"></div>
								<a href="'.URL::site($lang.'/order/'.$item->id).'"><div class="order_'.$lang.'"></div></a>
							</div>
						</div>
					</div>
				';

				$i++;

				if ($key <= 5) {
					echo $one;
					if ($i > 3) { $i = 1; echo '<div style="clear: both; padding-top: 40px"><div class="dotted_line"></div></div>'; }
				} else {
					$hidden .= $one;
					if (($i > 3) || ($key + 1 == $services_count && $key + 1 % 3 != 0)) { $i = 1; $hidden .= '<div style="clear: both; padding-top: 40px"><div class="dotted_line"></div></div>'; }
				}

				/*if ($key + 1 == $services_count && $key + 1 % 3 != 0)
					$hidden .= '<div style="clear: both; padding-top: 40px"><div class="dotted_line"></div></div>';*/
			}
		?>
		<div class="hide">
			<?= $hidden ?>
		</div>
	</div>
	<a href="javascript:void(0)"><div class="show_more_<?= $lang ?>"></div></a>
	<div class="title"><?= $sitetext['our_last_works']['_value'] ?></div>
		<? foreach($last_works as $key => $item): ?>
			<div class="work_cont" <?= ($key == 2) ? 'style="margin-right: 0px"' : '' ?> itemscope itemtype="http://schema.org/CreativeWork">
				<a itemprop="url" href="<?= URL::site($lang.'/works/'.$item->id) ?>" style="border: none">
					<img itemprop="image" src="<?= URL::site('static/uploads/works/'.$item->image) ?>" alt="<?= $item->title ?>" title="<?= $item->title ?>" width="290px" height="290px" />
				</a>
				<br /><br />
				<a itemprop="url" href="<?= URL::site($lang.'/works/'.$item->id) ?>">
					<span itemprop="name"><?= $item->title ?></span>
				</a>
				<p class="data" itemprop="dateCreated"><?= Model::factory('Date')->parseDate($item->creation_date, $lang) ?></p>
			</div>
		<? endforeach ?>
	<div class="clear"></div>
	<div class="dotted_line"></div>
	<? foreach ($dniwe as $key => $item): ?>
		<div class="dop_inf_cont" <?= ($key == 2) ? 'style="margin-right: 0"' : '' ?>>
			<p class="title"><?= $item->title ?></p>
			<?= $item->text ?>
		</div>
	<? endforeach ?>
</div>
<!-- google карта -->
<div style="display: none;">
    <div class="b-modal" id="exampleModal">
        <div class="b-modal_close arcticmodal-close">Закрыть</div>
        <div id="map" style="width: 940px; height: 480px"></div>
    </div>
</div>